package controller;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import view.BrowsePanel;
import view.DiskContentPanel;
import view.MainFrame;

public class SelectBrowsePanelListener implements MouseListener {
	
	public SelectBrowsePanelListener(DiskContentPanel d, MainFrame f, BrowsePanel bf) {
		diskContentPanel = d;
		frame = f;
		browsePanel = bf;
	}
	
	@Override
	public void mouseClicked(MouseEvent arg0) {}

	@Override
	public void mouseEntered(MouseEvent arg0) {}
		

	@Override
	public void mouseExited(MouseEvent arg0) {}

	@Override
	public void mousePressed(MouseEvent arg0) {}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		diskContentPanel.setActive();		
		frame.getMainPanel().changeBrowsePanel(browsePanel.getName());
	}
	
	DiskContentPanel diskContentPanel;
	MainFrame frame;	
	BrowsePanel browsePanel;

}
